<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  

  
  <title>Unity-Mesh-绘制正方体 | NoGameNoLife</title>
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
  <meta name="description" content="利用Mesh绘制一个正方体1. 思路当第一次写脚本时，我先创建了正方体的8个顶点，然后初始化了正方体的Triangles数组，在写到uv的时候发现8个顶点数量太少，是不能绘制一个正方体的。 改进的方法就是用 $6\times4&#x3D;24$ 个顶点（六个面，每个面4个顶点）来绘制正方体。此时，六个面中，每一个面都可以视作一个正方形，按照绘制正方形时的步骤绘制六个面即可。 2. 具体实现本例中规定：  以">
<meta property="og:type" content="article">
<meta property="og:title" content="Unity-Mesh-绘制正方体">
<meta property="og:url" content="http://example.com/2021/02/24/Unity-Mesh-%E7%BB%98%E5%88%B6%E6%AD%A3%E6%96%B9%E4%BD%93/index.html">
<meta property="og:site_name" content="NoGameNoLife">
<meta property="og:description" content="利用Mesh绘制一个正方体1. 思路当第一次写脚本时，我先创建了正方体的8个顶点，然后初始化了正方体的Triangles数组，在写到uv的时候发现8个顶点数量太少，是不能绘制一个正方体的。 改进的方法就是用 $6\times4&#x3D;24$ 个顶点（六个面，每个面4个顶点）来绘制正方体。此时，六个面中，每一个面都可以视作一个正方形，按照绘制正方形时的步骤绘制六个面即可。 2. 具体实现本例中规定：  以">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="e:/GiteeBlog/source_posts/2021-02-24-Unity-Mesh-绘制正方体.assets/Mesh绘制正方体.jpg">
<meta property="article:published_time" content="2021-02-24T12:41:16.000Z">
<meta property="article:modified_time" content="2021-02-24T13:23:03.597Z">
<meta property="article:author" content="林文豪">
<meta property="article:tag" content="Unity-Mesh">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="e:/GiteeBlog/source_posts/2021-02-24-Unity-Mesh-绘制正方体.assets/Mesh绘制正方体.jpg">
  
    <link rel="alternate" href="/atom.xml" title="NoGameNoLife" type="application/atom+xml">
  
  
    <link rel="icon" href="/favicon.png">
  
  
    <link href="//fonts.googleapis.com/css?family=Source+Code+Pro" rel="stylesheet" type="text/css">
  
  
<link rel="stylesheet" href="/css/style.css">

<meta name="generator" content="Hexo 5.1.1"></head>

<body>
  <div id="container">
    <div id="wrap">
      <header id="header">
  <div id="banner"></div>
  <div id="header-outer" class="outer">
    <div id="header-title" class="inner">
      <h1 id="logo-wrap">
        <a href="/" id="logo">NoGameNoLife</a>
      </h1>
      
    </div>
    <div id="header-inner" class="inner">
      <nav id="main-nav">
        <a id="main-nav-toggle" class="nav-icon"></a>
        
          <a class="main-nav-link" href="/">Home</a>
        
          <a class="main-nav-link" href="/archives">Archives</a>
        
      </nav>
      <nav id="sub-nav">
        
          <a id="nav-rss-link" class="nav-icon" href="/atom.xml" title="RSS Feed"></a>
        
        <a id="nav-search-btn" class="nav-icon" title="搜索"></a>
      </nav>
      <div id="search-form-wrap">
        <form action="//google.com/search" method="get" accept-charset="UTF-8" class="search-form"><input type="search" name="q" class="search-form-input" placeholder="Search"><button type="submit" class="search-form-submit">&#xF002;</button><input type="hidden" name="sitesearch" value="http://example.com"></form>
      </div>
    </div>
  </div>
</header>
      <div class="outer">
        <section id="main"><article id="post-Unity-Mesh-绘制正方体" class="article article-type-post" itemscope itemprop="blogPost">
  <div class="article-meta">
    <a href="/2021/02/24/Unity-Mesh-%E7%BB%98%E5%88%B6%E6%AD%A3%E6%96%B9%E4%BD%93/" class="article-date">
  <time datetime="2021-02-24T12:41:16.000Z" itemprop="datePublished">2021-02-24</time>
</a>
    
  <div class="article-category">
    <a class="article-category-link" href="/categories/Unity-Mesh/">Unity-Mesh</a>
  </div>

  </div>
  <div class="article-inner">
    
    
      <header class="article-header">
        
  
    <h1 class="article-title" itemprop="name">
      Unity-Mesh-绘制正方体
    </h1>
  

      </header>
    
    <div class="article-entry" itemprop="articleBody">
      
        <h3 id="利用Mesh绘制一个正方体"><a href="#利用Mesh绘制一个正方体" class="headerlink" title="利用Mesh绘制一个正方体"></a>利用Mesh绘制一个正方体</h3><h4 id="1-思路"><a href="#1-思路" class="headerlink" title="1. 思路"></a>1. 思路</h4><p>当第一次写脚本时，我先创建了正方体的8个顶点，然后初始化了正方体的Triangles数组，在写到uv的时候发现8个顶点数量太少，是不能绘制一个正方体的。</p>
<p>改进的方法就是用 $6\times4=24$ 个顶点（六个面，每个面4个顶点）来绘制正方体。此时，六个面中，每一个面都可以视作一个正方形，按照绘制正方形时的步骤绘制六个面即可。</p>
<h4 id="2-具体实现"><a href="#2-具体实现" class="headerlink" title="2. 具体实现"></a>2. 具体实现</h4><p>本例中规定：</p>
<ol>
<li>以正方体的中心作为原点</li>
<li>顶点顺序如图所示<img src="E:\GiteeBlog\source_posts\2021-02-24-Unity-Mesh-绘制正方体.assets\Mesh绘制正方体.jpg" alt="Mesh绘制正方体"></li>
<li>每一个面的顶点顺序都是按照，左下角—右下角—左上角—右上角。例如，看着正方体的底面，顺序为2—3—0—1，看着正方体的正面，顺序为0—1—4—5。</li>
</ol>
<p>代码如下：</p>
<figure class="highlight c#"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br></pre></td><td class="code"><pre><span class="line"><span class="keyword">private</span> Mesh _Mesh;</span><br><span class="line">    <span class="keyword">private</span> Vector3[] _Vextices;</span><br><span class="line">    <span class="keyword">private</span> <span class="keyword">int</span>[] _Triangles;</span><br><span class="line">    <span class="keyword">private</span> Vector2[] _Uv;</span><br><span class="line">    <span class="keyword">private</span> Vector3[] _Normal;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">void</span> <span class="title">Start</span>(<span class="params"></span>)</span> &#123;</span><br><span class="line">        _Vextices = <span class="keyword">new</span> Vector3[<span class="number">24</span>] &#123;</span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">-0.5f</span>,<span class="number">0.5f</span>), <span class="comment">//2</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">-0.5f</span>,<span class="number">0.5f</span>),  <span class="comment">//3</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">-0.5f</span>,<span class="number">-0.5f</span>),<span class="comment">//0</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">-0.5f</span>,<span class="number">-0.5f</span>), <span class="comment">//1</span></span><br><span class="line">            </span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">0.5f</span>,<span class="number">-0.5f</span>), <span class="comment">//4</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">0.5f</span>,<span class="number">-0.5f</span>),  <span class="comment">//5</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">0.5f</span>,<span class="number">0.5f</span>),  <span class="comment">//6</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">0.5f</span>,<span class="number">0.5f</span>),   <span class="comment">//7</span></span><br><span class="line">            </span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">-0.5f</span>,<span class="number">-0.5f</span>),<span class="comment">//0</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">-0.5f</span>,<span class="number">-0.5f</span>), <span class="comment">//1</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">0.5f</span>,<span class="number">-0.5f</span>), <span class="comment">//4</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">0.5f</span>,<span class="number">-0.5f</span>),  <span class="comment">//5</span></span><br><span class="line">            </span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">-0.5f</span>,<span class="number">-0.5f</span>), <span class="comment">//1</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">-0.5f</span>,<span class="number">0.5f</span>),  <span class="comment">//3</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">0.5f</span>,<span class="number">-0.5f</span>),  <span class="comment">//5</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">0.5f</span>,<span class="number">0.5f</span>),   <span class="comment">//7</span></span><br><span class="line">            </span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">-0.5f</span>,<span class="number">0.5f</span>),  <span class="comment">//3</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">-0.5f</span>,<span class="number">0.5f</span>), <span class="comment">//2</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">0.5f</span>,<span class="number">0.5f</span>,<span class="number">0.5f</span>),   <span class="comment">//7</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">0.5f</span>,<span class="number">0.5f</span>),  <span class="comment">//6</span></span><br><span class="line">            </span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">-0.5f</span>,<span class="number">0.5f</span>), <span class="comment">//2</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">-0.5f</span>,<span class="number">-0.5f</span>),<span class="comment">//0</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">0.5f</span>,<span class="number">0.5f</span>),  <span class="comment">//6</span></span><br><span class="line">            <span class="keyword">new</span> Vector3(<span class="number">-0.5f</span>,<span class="number">0.5f</span>,<span class="number">-0.5f</span>), <span class="comment">//4</span></span><br><span class="line">        &#125;;</span><br><span class="line"></span><br><span class="line">        _Mesh = <span class="keyword">new</span> Mesh();</span><br><span class="line"></span><br><span class="line">        _Triangles = <span class="keyword">new</span> <span class="keyword">int</span>[<span class="number">36</span>];</span><br><span class="line">        _Uv = <span class="keyword">new</span> Vector2[<span class="number">24</span>];</span><br><span class="line">        _Normal = <span class="keyword">new</span> Vector3[<span class="number">24</span>];</span><br><span class="line"></span><br><span class="line">        <span class="keyword">for</span> (<span class="keyword">int</span> i = <span class="number">0</span>; i &lt; <span class="number">6</span>; i++) &#123;</span><br><span class="line">            RenderSurface(<span class="keyword">new</span> <span class="keyword">int</span>[<span class="number">4</span>] &#123; i*<span class="number">4</span>, i*<span class="number">4</span>+<span class="number">1</span>, i*<span class="number">4</span>+<span class="number">2</span>, i*<span class="number">4</span>+<span class="number">3</span> &#125;, i);</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        _Mesh.vertices = _Vextices;</span><br><span class="line">        _Mesh.triangles = _Triangles;</span><br><span class="line">        _Mesh.uv = _Uv;</span><br><span class="line">        _Mesh.normals = _Normal;</span><br><span class="line"></span><br><span class="line">        <span class="keyword">this</span>.GetComponent&lt;MeshFilter&gt;().mesh = _Mesh;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    <span class="function"><span class="keyword">private</span> <span class="keyword">void</span> <span class="title">RenderSurface</span>(<span class="params"><span class="keyword">int</span>[] triangles, <span class="keyword">int</span> index</span>)</span> &#123;</span><br><span class="line">        <span class="comment">//设置三角形</span></span><br><span class="line">        _Triangles[index * <span class="number">6</span>] = triangles[<span class="number">3</span>];</span><br><span class="line">        _Triangles[index * <span class="number">6</span> + <span class="number">1</span>] = triangles[<span class="number">0</span>];</span><br><span class="line">        _Triangles[index * <span class="number">6</span> + <span class="number">2</span>] = triangles[<span class="number">2</span>];</span><br><span class="line"></span><br><span class="line">        _Triangles[index * <span class="number">6</span> + <span class="number">3</span>] = triangles[<span class="number">3</span>];</span><br><span class="line">        _Triangles[index * <span class="number">6</span> + <span class="number">4</span>] = triangles[<span class="number">1</span>];</span><br><span class="line">        _Triangles[index * <span class="number">6</span> + <span class="number">5</span>] = triangles[<span class="number">0</span>];</span><br><span class="line"></span><br><span class="line">        <span class="comment">//设置uv</span></span><br><span class="line">        _Uv[index * <span class="number">4</span>] = <span class="keyword">new</span> Vector2(<span class="number">0</span>, <span class="number">0</span>);</span><br><span class="line">        _Uv[index * <span class="number">4</span> + <span class="number">1</span>] = <span class="keyword">new</span> Vector2(<span class="number">1</span>, <span class="number">0</span>);</span><br><span class="line">        _Uv[index * <span class="number">4</span> + <span class="number">2</span>] = <span class="keyword">new</span> Vector2(<span class="number">0</span>, <span class="number">1</span>);</span><br><span class="line">        _Uv[index * <span class="number">4</span> + <span class="number">3</span>] = <span class="keyword">new</span> Vector2(<span class="number">1</span>, <span class="number">1</span>);</span><br><span class="line"></span><br><span class="line">        <span class="comment">// 设置normal</span></span><br><span class="line">        Vector3 vec = Vector3.zero;</span><br><span class="line">        vec = (_Vextices[triangles[<span class="number">0</span>]] + _Vextices[triangles[<span class="number">1</span>]] + _Vextices[triangles[<span class="number">2</span>]] + _Vextices[triangles[<span class="number">3</span>]]).normalized;</span><br><span class="line">        _Normal[index * <span class="number">4</span>] = vec;</span><br><span class="line">        _Normal[index * <span class="number">4</span> + <span class="number">1</span>] = vec;</span><br><span class="line">        _Normal[index * <span class="number">4</span> + <span class="number">2</span>] = vec;</span><br><span class="line">        _Normal[index * <span class="number">4</span> + <span class="number">3</span>] = vec;</span><br><span class="line">    &#125;</span><br></pre></td></tr></table></figure>

<h4 id="3-注意事项"><a href="#3-注意事项" class="headerlink" title="3. 注意事项"></a>3. 注意事项</h4><ol>
<li>本例中绘制出来的正方体与Unity自带的Cube相比并不完全一样，没有见过unity的源码并不清楚具体的原因是什么，待以后有时间考证一下。</li>
<li>在绘制Mesh的时候一定要按照 Unity Scripting API 中写的来，不能直接用数组的索引对Mesh中的数组元素进行修改。</li>
</ol>

      
    </div>
    <footer class="article-footer">
      <a data-url="http://example.com/2021/02/24/Unity-Mesh-%E7%BB%98%E5%88%B6%E6%AD%A3%E6%96%B9%E4%BD%93/" data-id="ckljgxjor000578dl80paahly" class="article-share-link">分享</a>
      
      
  <ul class="article-tag-list" itemprop="keywords"><li class="article-tag-list-item"><a class="article-tag-list-link" href="/tags/Unity-Mesh/" rel="tag">Unity-Mesh</a></li></ul>

    </footer>
  </div>
  
    
<nav id="article-nav">
  
  
    <a href="/2021/02/23/Unity%E5%9F%BA%E7%A1%80-2D%E7%9B%B8%E6%9C%BA%E6%B8%B2%E6%9F%93%E5%88%B0RT%E7%9A%84%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE/" id="article-nav-older" class="article-nav-link-wrap">
      <strong class="article-nav-caption">Older</strong>
      <div class="article-nav-title">Unity基础-2D相机渲染到RT的相关设置</div>
    </a>
  
</nav>

  
</article>

</section>
        
          <aside id="sidebar">
  
    
  <div class="widget-wrap">
    <h3 class="widget-title">分类</h3>
    <div class="widget">
      <ul class="category-list"><li class="category-list-item"><a class="category-list-link" href="/categories/Shader/">-Shader</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/">Artifical Intelligence</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/">NPC Behavior Decision-making</a><ul class="category-list-child"><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/GOAP/">GOAP</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Artifical-Intelligence/NPC-Behavior-Decision-making/Utility-based-System/">Utility-based System</a></li></ul></li></ul></li><li class="category-list-item"><a class="category-list-link" href="/categories/Shader/">Shader</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Unity-Mesh/">Unity-Mesh</a></li><li class="category-list-item"><a class="category-list-link" href="/categories/Unity%E5%9F%BA%E7%A1%80/">Unity基础</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签</h3>
    <div class="widget">
      <ul class="tag-list" itemprop="keywords"><li class="tag-list-item"><a class="tag-list-link" href="/tags/Shader/" rel="tag">-Shader</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/2D%E7%9B%B8%E6%9C%BA%E8%AE%BE%E7%BD%AE/" rel="tag">2D相机设置</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Artifical-Intelligence/" rel="tag">Artifical Intelligence</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/GOAP/" rel="tag">GOAP</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Unity-Mesh/" rel="tag">Unity-Mesh</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/Utility-based-System/" rel="tag">Utility-based System</a></li><li class="tag-list-item"><a class="tag-list-link" href="/tags/%E2%80%94-Shader/" rel="tag">— Shader</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">标签云</h3>
    <div class="widget tagcloud">
      <a href="/tags/Shader/" style="font-size: 10px;">-Shader</a> <a href="/tags/2D%E7%9B%B8%E6%9C%BA%E8%AE%BE%E7%BD%AE/" style="font-size: 10px;">2D相机设置</a> <a href="/tags/Artifical-Intelligence/" style="font-size: 20px;">Artifical Intelligence</a> <a href="/tags/GOAP/" style="font-size: 15px;">GOAP</a> <a href="/tags/Unity-Mesh/" style="font-size: 10px;">Unity-Mesh</a> <a href="/tags/Utility-based-System/" style="font-size: 10px;">Utility-based System</a> <a href="/tags/%E2%80%94-Shader/" style="font-size: 10px;">— Shader</a>
    </div>
  </div>

  
    
  <div class="widget-wrap">
    <h3 class="widget-title">归档</h3>
    <div class="widget">
      <ul class="archive-list"><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/02/">二月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2021/01/">一月 2021</a></li><li class="archive-list-item"><a class="archive-list-link" href="/archives/2020/12/">十二月 2020</a></li></ul>
    </div>
  </div>


  
    
  <div class="widget-wrap">
    <h3 class="widget-title">最新文章</h3>
    <div class="widget">
      <ul>
        
          <li>
            <a href="/2021/02/24/Unity-Mesh-%E7%BB%98%E5%88%B6%E6%AD%A3%E6%96%B9%E4%BD%93/">Unity-Mesh-绘制正方体</a>
          </li>
        
          <li>
            <a href="/2021/02/23/Unity%E5%9F%BA%E7%A1%80-2D%E7%9B%B8%E6%9C%BA%E6%B8%B2%E6%9F%93%E5%88%B0RT%E7%9A%84%E7%9B%B8%E5%85%B3%E8%AE%BE%E7%BD%AE/">Unity基础-2D相机渲染到RT的相关设置</a>
          </li>
        
          <li>
            <a href="/2021/02/22/Shader-2D-%E6%B5%81%E6%B0%B4%E6%95%88%E6%9E%9C/">Shader-2D-流水效果</a>
          </li>
        
          <li>
            <a href="/2021/01/30/%E5%AD%A6%E4%B9%A0Shader%E5%85%A5%E9%97%A8%E7%B2%BE%E8%A6%81%E7%9A%84%E8%AE%B0%E5%BD%95/">学习Shader入门精要的记录</a>
          </li>
        
          <li>
            <a href="/2020/12/29/%E4%B8%AA%E4%BA%BA%E5%AF%B9Utility-based-System%E7%90%86%E8%A7%A3/">个人对Utility-based System的理解</a>
          </li>
        
      </ul>
    </div>
  </div>

  
</aside>
        
      </div>
      <footer id="footer">
  
  <div class="outer">
    <div id="footer-info" class="inner">
      &copy; 2021 林文豪<br>
      Powered by <a href="http://hexo.io/" target="_blank">Hexo</a>
    </div>
  </div>
</footer>
    </div>
    <nav id="mobile-nav">
  
    <a href="/" class="mobile-nav-link">Home</a>
  
    <a href="/archives" class="mobile-nav-link">Archives</a>
  
</nav>
    

<script src="//ajax.googleapis.com/ajax/libs/jquery/2.0.3/jquery.min.js"></script>


  
<link rel="stylesheet" href="/fancybox/jquery.fancybox.css">

  
<script src="/fancybox/jquery.fancybox.pack.js"></script>




<script src="/js/script.js"></script>




  </div>
</body>
</html>